package com.hyl.factory;

/**
 * LoginFactory
 *
 * @author hyl
 * @date 2024-11-29
 */
public class LoginFactory {
    public static ILogin  getLoginInstall(String key){
        ILogin login = null;
        if (key.equals("phone")){
            login = new PhoneLogin();
        }else if (key.equals("qq")){
            login = new QQLogin();
        }else if (key.equals("email")){
            login = new EmailLogin();
        }
        return login;
    }
}
